﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CellphoneRepair.DAL;

namespace CellphoneRepair.Entities
{
    [DisplayName(@"配件")]
    public class Peijian
    {
        [DisplayName("配件ID")]
        public string Idpeijian { get; set; }

        [DisplayName("配件类型ID")]
        public string Idpjtype { get; set; }

        [DisplayName("配件名称")]
        public string Mingcheng { get; set; }

        [DisplayName("配件价格")]
        public string Price { get; set; }
    }

    public class PeijianBll:DBCommon<Peijian>
    {
        public override string TableName
        {
            get { return "Peijian"; }
        }

        public override string PrimaryKey
        {
            get { return "Idpeijian"; }
        }

        public override string ConnKey
        {
            get { return "default"; }
        }

        public override string ParaF
        {
            get { return "@"; }
        }
    }
}